package com.atguigu.petstore.app;

import com.atguigu.petstore.exception.PetStoreExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * @author lfy
 * @Description
 * @create 2023-09-27 11:27
 */
@Import(PetStoreExceptionHandler.class)
@EnableFeignClients(basePackages = "com.atguigu.petstore.feign")
@EnableDiscoveryClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class AppMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(AppMainApplication.class,args);
    }
}
